﻿using System;
using System.Collections.Generic;
using System.Text;
using mshtml;

namespace ECC_EXT_HttpLib
{
    class Utility
    {
        public static String GetAttributeById(HTMLDocument _htmlDocument,string idValue,string attributeValue)
        {
            String str = "";

            if(_htmlDocument == null
                ||_htmlDocument.getElementById(idValue)== null
                ||_htmlDocument.getElementById(idValue).getAttribute(attributeValue) == null)
                return str;

            return _htmlDocument.getElementById(idValue).getAttribute(attributeValue).ToString();
        }
    }
}
